<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ttl.bc.ap.bean.BCAPInvoiceSub" %>

<html>
	<head>
		<title>BcAP - Test</title>
	</head>
	<body>
			<%! 
				private long startTime = 0;
				private long endTime = 0;
			%>
			<%  startTime = System.currentTimeMillis();%>	
			
		<table>
			<th>docNo</th><th>itemCode</th><th>itemName</th><th>qty</th><th>price</th>
			<logic:notEmpty name="bcapinvData">

				<logic:iterate name="bcapinvData" id="t" indexId="i">
					<tr>						
						<td><bean:write name="t" property="docNo"/></td>
						<td><bean:write name="t" property="itemCode"/></td>
						<td><bean:write name="t" property="itemName"/></td>
						<td><bean:write name="t" property="qty" format="#,###,###.00"/></td>
						<td><bean:write name="t" property="price" format="#,###,###.00"/></td>
					</tr>
				</logic:iterate>
			<%  
				endTime = System.currentTimeMillis();
				double interval = (endTime-startTime)/1000.0;
								
				double queryTime = Double.valueOf(request.getSession().getAttribute("resultTime").toString());
				out.println("time of query = "+queryTime+"<br/>");
				out.println("time of interval = "+interval+"<br/>");
				out.println("result time  = "+(interval+queryTime)+"<br/>");
			%>								
			</logic:notEmpty>
		</table>
	
	</body>
</html>